package com.bigdata.service.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bigdata.service.domain.Datasets;
import com.bigdata.service.domain.UserCollections;
import com.bigdata.service.domain.vo.UserCollectionsVo;
import com.bigdata.service.domain.bo.UserCollectionsBo;
import com.bigdata.common.core.page.TableDataInfo;
import com.bigdata.common.core.domain.PageQuery;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;

/**
 * 用户收藏Service接口
 *
 * @author ruoyi
 * @date 2025-07-22
 */
public interface IUserCollectionsService {

    /**
     * 查询用户收藏
     */
    UserCollectionsVo queryById(String id);

    /**
     * 查询用户收藏列表
     */
    TableDataInfo<UserCollectionsVo> queryPageList(UserCollectionsBo bo, PageQuery pageQuery);

    /**
     * 查询用户收藏列表
     */
    List<UserCollectionsVo> queryList(UserCollectionsBo bo);

    /**
     * 新增用户收藏
     */
    Boolean insertByBo(UserCollectionsBo bo);

    /**
     * 修改用户收藏
     */
    Boolean updateByBo(UserCollectionsBo bo);

    /**
     * 校验并批量删除用户收藏信息
     */
    Boolean deleteWithValidByIds(Collection<String> ids, Boolean isValid);

    TableDataInfo<Datasets> selectUserCollectionsPageList(UserCollectionsBo userCollectionsBo);
}
